package com.tonggedata.dataapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tonggedata.dataapi.entity.ApiConfig;
import com.tonggedata.dataapi.dto.ApiConfigDto;
import com.tonggedata.dataapi.dto.ApiConfigParamDto;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

/**
 * ==================================================
 *
 * @author : tonggedata
 * @fileName:
 * @create : 2022-06-19 13:08:46
 * @Description： api配置表，api核心
 * ==================================================
 * @since 1.0.0
 */
public interface ApiConfigService extends IService<ApiConfig> {

    Result queryApiConfigListPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize);

    Result queryApiConfigListByGroupId(User loginUser, Long groupId);

    Map<String, Object> queryApiConfigList(User loginUser, String name);

    Map<String, Object> queryApiConfig(long id);

    Result<Object> updateApiConfig(long id, User loginUser, ApiConfigParamDto apiConfigParam);

    Result<Object> delete(User loginUser, long id);

    Result<Object> createApiConfig(User loginUser, ApiConfigDto apiConfigParam);


}
